package com.springboot.activiti.processutils.leave;

import java.util.ArrayList;
import java.util.List;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

import com.springboot.activiti.dto.ProcessButton;

public class Task2Linster implements TaskListener {

	private static final long serialVersionUID = 2163833049732661745L;

	@Override
	public void notify(DelegateTask delegateTask) {
		
		List<ProcessButton> buttonList = new ArrayList<ProcessButton>();
		buttonList.add(new ProcessButton("销假","1"));
		delegateTask.setVariableLocal("processButtons", buttonList);
	}

}
